package com.kangyi.admin.mapper;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;

/**
 * @author  Blank
 * @version 1.0
 */
@Mapper
public interface NursingHomeFavoriteMapper {

    @Delete("delete from nursing_home_favorite where user_id = #{userId};")
    void deleteByUserId(Integer userId);


    @Delete("delete from nursing_home_favorite where nursing_home_id = #{nursingHomeId};")
    void deleteByNursingHomeId(Integer nursingHomeId);
}
